<%@ include file="../../base/include.jsp"%>

<div class="well actionbar">
	<div class="row-fluid">
		<button class="btn" <c:if test="${isBusy}">disabled="true"</c:if>
			onclick="location.href='<c:url value='/admin/advanced/index'/>'">
			<i class="icon-pencil"></i> Make Indexing
		</button>

		<button class="btn" type="button"
			<c:if test="${isBusy}"> disabled="true"</c:if>
			onclick="location.href='<c:url value='/admin/advanced/integrity'/>'">
			<i class="icon-check"></i> Check Integrity
		</button>

		<button class="btn" type="button"
			<c:if test="${isBusy}"> disabled="true"</c:if> id="btnBackup"
			onclick="showMessage(0, 'backup');">
			<i class="icon-cog"></i> Backup
		</button>

		<form method="post" style="display: inline;"
			enctype="multipart/form-data"
			action="<c:url value='/admin/advanced/upload'/>">
			<span class="btn fileinput-button"> <span><i
					class="icon-upload"></i> Upload backup</span> <input type="file"
				name=file id=file title="Upload backup file..."
				accept="application/x-zip-compressed, application/zip"
				onchange="this.form.submit();">
			</span>
		</form>

		<c:choose>
			<c:when test="${isMaintenanceModeActive}">
				<a class="btn btn-primary"
					href="<c:url value='/admin/advanced/maintenance?maintenance_mode='/>off">
					<i class="icon-off icon-white"></i> Turn OFF Maintenance Mode
				</a>
			</c:when>
			<c:otherwise>
				<a class="btn btn-danger"
					href="<c:url value='/admin/advanced/maintenance?maintenance_mode='/>on">
					<i class="icon-off icon-white"></i> Turn ON Maintenance Mode
				</a>
			</c:otherwise>
		</c:choose>
	
		<a class="btn"
			href='<c:url value='/admin/advanced/clearLog'/>'> <i
				class="icon-trash"></i> Clear Log
		</a>
	
		<c:if test="${isBusy}">In progress...</c:if>
	</div>
</div>
